# 指定工程所要使用的Qt模块
QT += widgets gui concurrent
QT += axcontainer

# 指定可执行文件或库的基本文件名，默认为当前目录名
TARGET = pluginAVTest

# 指定生成makefile类型
TEMPLATE = lib

# 指定工程配置和编译参数
CONFIG += c++11 plugin

# 指定预定义预处理器符号
DEFINES += QT_DEPRECATED_WARNINGS

# 指定C++实现文件
SOURCES += \
    ../../../inc/QLsAV/qlsavpacketqueue.cpp \
    ../../../inc/QLsAV/qlsavplayer.cpp \
    ../../../inc/QLsAV/qlsavwidget.cpp \
    ../../../inc/QLsAV/qlsprogressbar.cpp \
    ../../../inc/QLsAV/qlsvolumetooltipwidget.cpp \
    ../../../inc/QLsFunc/qlsfunc.cpp \
    pluginavtest.cpp \
    qlsavtest.cpp

# 指定C++头文件
HEADERS += \
    ../../../inc/QLsAV/qlsavpacketqueue.h \
    ../../../inc/QLsAV/qlsavplayer.h \
    ../../../inc/QLsAV/qlsavwidget.h \
    ../../../inc/QLsAV/qlsprogressbar.h \
    ../../../inc/QLsAV/qlsvolumetooltipwidget.h \
    ../../../inc/QLsFunc/qlsfunc.h \
    pluginavtest.h \
    qlsavtest.h

DISTFILES += pluginAVTest.json

# 指定release模式编译时的配置
CONFIG(release, debug|release) {
    # 指定可执行文件放置的目录
    DESTDIR = ../../../bin/release/plugins/QCoreSystem
    # 指定目标文件(obj)生成的目录
    OBJECTS_DIR = ../../../lib/release/plugins/QCoreSystem/pluginAVTest
    # 指定ui_.h文件生成路径
    UI_DIR = release
    # 指定目标库文件放置的目录
#    DLLDESTDIR = ../../../bin/release/plugins/QCoreSystem
}

# 指定debug模式编译时的配置
CONFIG(debug, debug|release) {
    # 指定可执行文件放置的目录
    DESTDIR = ../../../bin/debug/plugins/QCoreSystem
    # 指定目标文件(obj)生成的目录
    OBJECTS_DIR = ../../../lib/debug/plugins/QCoreSystem/pluginAVTest
    # 指定ui_.h文件生成路径
    UI_DIR = debug
    # 指定目标库文件放置的目录
#    DLLDESTDIR = ../../../bin/debug/plugins/QCoreSystem
}

FORMS += \
    ../../../inc/QLsAV/qlsavwidget.ui \
    ../../../inc/QLsAV/qlsvolumetooltipwidget.ui \
    qlsavtest.ui

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../bin/release/ -ldllQsLog
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../bin/debug/ -ldllQsLog
else:unix: LIBS += -L$$PWD/../../../bin/ -ldllQsLog

INCLUDEPATH += $$PWD/../../../bin/release
DEPENDPATH += $$PWD/../../../bin/release

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../bin/release/ -ldllQLsLog
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../bin/debug/ -ldllQLsLog
else:unix: LIBS += -L$$PWD/../../../bin/ -ldllQLsLog

INCLUDEPATH += $$PWD/../../../bin/release
DEPENDPATH += $$PWD/../../../bin/release

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../bin/release/ -ldllQLsThemesManager
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../bin/debug/ -ldllQLsThemesManager
else:unix: LIBS += -L$$PWD/../../../bin/ -ldllQLsThemesManager

INCLUDEPATH += $$PWD/../../../bin/release
DEPENDPATH += $$PWD/../../../bin/release

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../bin/release/ -ldllQLsPluginsManager
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../bin/debug/ -ldllQLsPluginsManager
else:unix: LIBS += -L$$PWD/../../../bin/ -ldllQLsPluginsManager

INCLUDEPATH += $$PWD/../../../bin/release
DEPENDPATH += $$PWD/../../../bin/release

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../bin/release/ -ldllQLsPluginsManagerAppfwk
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../bin/debug/ -ldllQLsPluginsManagerAppfwk
else:unix: LIBS += -L$$PWD/../../../bin/ -ldllQLsPluginsManagerAppfwk

INCLUDEPATH += $$PWD/../../../bin/release
DEPENDPATH += $$PWD/../../../bin/release

RESOURCES += \
    json.qrc

INCLUDEPATH += $$PWD/../../../inc/QLsAV

INCLUDEPATH += $$PWD/../../../inc/QLsAV/ffmpeg/include
LIBS += -L$$PWD/../../../inc/QLsAV/ffmpeg/lib/win32/ \
        -lavcodec -lavdevice -lavfilter -lavformat -lavutil -lpostproc -lswresample -lswscale

INCLUDEPATH += $$PWD/../../../inc/QLsAV/SDL2/include/SDL2
LIBS += -L$$PWD/../../../inc/QLsAV/SDL2/lib/ -lSDL2
DEFINES += SDL_MAIN_HANDLED
